<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js"></script>
</head>
<body>
    <div id="app">
        <!-- 简洁的批量传递，直接把需要传递给模板属性的对象 交给v-bind属性即可
            批量传递不能书写简写
        -->
        <h1 v-bind:name="prop.name" :age="prop.age" :sex="prop.sex">{{msg}}</h1>
        <h1 v-bind ="prop">{{msg}}</h1>
    </div>
   <script>
     const vm = new Vue({
        el:"#app",
        data(){
            return{
                msg:"heihei",
                prop:{
                    name:"laowu",
                    age:"18",
                    sex:"nan",
                }
            }
        }
    })
   </script>
</body>
</html>